package com.baosight.risk.api.xtzy;

import com.baosight.risk.base.service.BaseService;
import com.baosight.risk.common.enums.IntegralType;
import com.baosight.risk.service.xtzy.entity.XtzyIntegral;
import com.baosight.risk.service.xtzy.entity.XtzyUser;

public interface IXtzyIntegralService extends BaseService<XtzyIntegral> {

    /**
     * @description 对用户积分新增，插入积分明细，
     */
    void insertIntegral(XtzyUser user, IntegralType type);

    /**
     * @description 获取当前用户积分情况和排名
     */
    XtzyIntegral getUserIntegral();

    /**
     * @description 检查是否超过订阅上限
     */
    boolean checkOrderLimit();

    /**
     * @description 自定义指标看板——检查是否超过创建看板分组上限
     */
    boolean checkGroupLimit();

    /**
     * @description 自定义指标看板——检查是否超过看板分组订阅指标上限
     */
    boolean checkGroupOrderLimit(String groupId);


}
